package com.heima.controller;


import com.heima.pojo.entity.Business;
import com.heima.service.BusinessService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 商圈表 前端控制器
 * </p>
 *
 * @author ljk
 * @since 2024-10-20
 */
@RestController
@RequestMapping("/api/vm-service/businessType")
@Slf4j
@Api(tags = "查询商圈列表")
@RequiredArgsConstructor
public class BusinessController {
    private final BusinessService businessService;

    @GetMapping
    @ApiOperation("查询商圈列表")
    public List<Business> businessList(){
        return businessService.list();
    }


}
